marko
Version:
UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.
12 lines (9 loc) • 572 B
JavaScript
;var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = _default;var _compiler = require("@marko/compiler");
var _htmlOutWrite = _interopRequireDefault(require("../util/html-out-write"));
var _withPreviousLocation = _interopRequireDefault(require("../util/with-previous-location"));
function _default(path) {
const { node } = path;
path.replaceWith(
(0, _withPreviousLocation.default)((0, _htmlOutWrite.default)`<?${_compiler.types.stringLiteral(node.value)}?>`, node)
);
}